package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.basic.JsonObj;
import org.apache.ibatis.annotations.Param;
import java.util.List;

import com.zjcode.cdcer.model.TkmGastroscopeDiagnosisInfo;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface TkmGastroscopeDiagnosisInfoMapper {

    int deleteByPrimaryKey(String id);

    int insert(TkmGastroscopeDiagnosisInfo record);

    int insertSelective(TkmGastroscopeDiagnosisInfo record);

    TkmGastroscopeDiagnosisInfo selectByPrimaryKey(String id);

    List<TkmGastroscopeDiagnosisInfo> findByOrgIdAndUploadYear(PageData pageData);

    int updateByPrimaryKeySelective(TkmGastroscopeDiagnosisInfo record);

    int updateByPrimaryKey(TkmGastroscopeDiagnosisInfo record);


    List<TkmGastroscopeDiagnosisInfo> selectAllByUploadYearAndExtFlagOrderByUploadMonth(@Param("uploadYear") String uploadYear,
                                                                                        @Param("extFlag") String extFlag);

    int insertList(@Param("list") List<TkmGastroscopeDiagnosisInfo> list);

    int updateExtFlagByCreateBy(@Param("updatedExtFlag")String updatedExtFlag,@Param("createBy")String createBy);


    void changStatus(PageData pageData);
}
